# Rename folders
Use this format to rename folder(s) in a document library. The filename should contain RenameFolder and format is xls(x)/csv.
# Columns
| Column | Required | Description |
|---|---|---|
| Url | Either Url or MatterCode | The relative path to the document library containing the folder to be renamed |
| ClientCode | No | The client code, used together with MatterCode to look up the document library |
| MatterCode | Either Url or MatterCode | The matter code used to look up the document library URL from the matters list |
| Folder | Yes | The relative path to the existing folder within the document library |
| NewFolder | Yes | The new name for the folder (only the deepest folder is renamed) |
| RecycleBin | No | If true (default), the original folder is moved to the recycle bin before renaming. Set to false to skip the recycle bin |
# Usage
The Url contains the relative path to the existing document library containing the folder to be renamed.
If a MatterCode is specified instead of a Url, the URL value from the matters list is used to load the document library. Optionally specify ClientCode together with MatterCode.
WARNING
If the MatterCode resolves to multiple document libraries, an error is returned. In that case, use the Url column instead.
The Folder column contains the relative path to the existing folder. The NewFolder column contains the new name for the deepest folder in the path.
# Example
| MatterCode | Folder | NewFolder | RecycleBin |
|---|---|---|---|
| 10332 | Correspondence\E-mails | _Email | True |
This renames the folder Correspondence\E-mails to Correspondence\_Email in the document library associated with matter 10332.